package com.trainfinder.ripper.sweep;

import java.util.Calendar;

import com.trainfinder.ripper.Storer;

public class ShortSweep implements Sweep {

	public void sweep(String fromStation, String toStation) {
		Storer STORER = new Storer();
		Calendar c = Calendar.getInstance();
		

		
		STORER.removeExpiredData();
		int i = 0;
		while (i < 20) {

			STORER.dailyStore(c, 1, fromStation, toStation);
			STORER.dailyStore(c, 7, fromStation, toStation);
		
			c.add(Calendar.DAY_OF_YEAR, 1);
			i++;
		}
	
	}

	public static final void main(String args[]) {
		new ShortSweep().sweep("london", "paris");
	}
}
